<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>      
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Detalhamento do Anúncio</title>
</head>
<body>

	<f:view>

		<h2>Dados do Anúncio</h2>

		<h:panelGrid border="0" columns="2" style="background-color: #CCE0FF">
			<h:outputText value="Identificador: "></h:outputText>
			<h:outputText value="#{principal.anuncio.id}"></h:outputText>
			<h:outputText value="Resumo: "></h:outputText>
			<h:outputText value="#{principal.anuncio.resumo}"></h:outputText>
			<h:outputText value="Detalhamento: "></h:outputText>
			<h:outputText value="#{principal.anuncio.detalhamento}"></h:outputText>
			<h:outputText value="Valor: "></h:outputText>
			<h:outputText value="#{principal.anuncio.valor}"></h:outputText>
			<h:outputText value="Data Publicação: "></h:outputText>
			<h:outputText value="#{principal.anuncio.dataPublicacao}">
				<f:convertDateTime pattern="dd/MM/yyyy"/>
			</h:outputText>
			<h:outputText value="Vendedor: "></h:outputText>
			<h:outputText value="#{principal.anuncio.vendedor}"></h:outputText>
		</h:panelGrid>
		<br/>
		<h:form>
			<h:commandLink action="#{principal.voltarTelaPrincipal}">
				<h:outputText value="Voltar"></h:outputText>
			</h:commandLink>
		</h:form>
		
	</f:view>

</body>
</html>